<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            display: flex;
            gap: 20px;
            /* 设置间隙 */
            /* 弹性也可以有gap间隙的属性 */
        }


        .zy {
            height: 200px;
            width: 200px;
            border: solid;
        }

        .zy01 {
            background-image: linear-gradient(rgb(214, 84, 105), rgb(87, 197, 240));
            /* 从上到下渐变 */
        }

        .zy02 {
            background-image: linear-gradient(to right, rgb(214, 84, 105), rgb(87, 197, 240));
            /* 从左到右渐变 */
        }

        .zy03 {
            background-image: linear-gradient(135deg, rgb(214, 84, 105), rgb(87, 197, 240));
            /* 从左上角到右下角的渐变 */
        }

        .zy04 {
            background-image: linear-gradient(to right top, rgb(214, 84, 105), rgb(87, 197, 240));
            /* 带有指定的角度线渐变 */
        }

        .zy05 {
            background-image: linear-gradient(red, green, blue);
        }

        .zy06 {
            background-image: linear-gradient(to right, red, yellow, green, blue, violet);
            /* 带有彩虹颜色和文本的渐变 */
        }

        .zy07 {
            background-image: repeating-linear-gradient(red, yellow 10%, green 20%);
            /* 重复的线性渐变 */
        }

        .zy08 {
            background-image: radial-gradient(100px, red, green, blue);
            /* 颜色结点均匀分布的径向渐变 */
        }

        .zy09 {
            background-image: radial-gradient(50% 50%, red, yellow, rgb(61, 236, 61));
            /* 形状为圆形的径向渐变 */
        }

        .zy10 {
            background-image: repeating-radial-gradient(red, yellow 10%, green 20%);
        }
    </style>
</head>

<body>
    <div class="zy zy01"></div>
    <div class="zy zy02"></div>
    <div class="zy zy03"></div>
    <div class="zy zy04"></div>
    <div class="zy zy05"></div>
    <div class="zy zy06"></div>
    <div class="zy zy07"></div>
    <div class="zy zy08"></div>
    <div class="zy zy09"></div>
    <div class="zy zy10"></div>
    </div>
</body>

</html>